﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000EC RID: 236
	public class TAlterWarehouseStmt : TCustomSqlStatement
	{
		// Token: 0x06000800 RID: 2048 RVA: 0x003016B1 File Offset: 0x002FF8B1
		public void setNewWarehouseName(TObjectName newWarehouseName)
		{
			this.newWarehouseName = newWarehouseName;
		}

		// Token: 0x06000801 RID: 2049 RVA: 0x003016BA File Offset: 0x002FF8BA
		public TObjectName getNewWarehouseName()
		{
			return this.newWarehouseName;
		}

		// Token: 0x06000802 RID: 2050 RVA: 0x003016C2 File Offset: 0x002FF8C2
		public void setWarehouseName(TObjectName warehouseName)
		{
			this.warehouseName = warehouseName;
		}

		// Token: 0x06000803 RID: 2051 RVA: 0x003016CB File Offset: 0x002FF8CB
		public TObjectName getWarehouseName()
		{
			return this.warehouseName;
		}

		// Token: 0x06000804 RID: 2052 RVA: 0x003016D3 File Offset: 0x002FF8D3
		public TAlterWarehouseStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterWarehouse;
		}

		// Token: 0x06000805 RID: 2053 RVA: 0x003016E8 File Offset: 0x002FF8E8
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.warehouseName = (TObjectName)tdummy.node1;
			this.newWarehouseName = (TObjectName)tdummy.node2;
			return 0;
		}

		// Token: 0x06000806 RID: 2054 RVA: 0x00301736 File Offset: 0x002FF936
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000807 RID: 2055 RVA: 0x00301746 File Offset: 0x002FF946
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011FA RID: 4602
		private TObjectName warehouseName;

		// Token: 0x040011FB RID: 4603
		private TObjectName newWarehouseName;
	}
}
